package cn.tedu.jsd2210.csmall.product.mapper;

import cn.tedu.jsd2210.csmall.product.pojo.entity.Picture;
import cn.tedu.jsd2210.csmall.product.pojo.vo.PictureListVO;
import cn.tedu.jsd2210.csmall.product.pojo.vo.PictureStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 *
 * @author Don
 * @version 0.0.1
 */
@Repository
public interface PictureMapper {

    int insert(Picture picture);


    int insertBatch(List<Picture> pictures);


    int deleteById(Long id);


    int deleteByIds(Long[] ids);

    int update(Picture picture);

    int count();

    int countByAlbum(Long albumId);

    PictureStandardVO getStandardById(Long id);

    List<PictureListVO> list();




}
